﻿using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using XYAC.Framework.WohuaMesExtend.IHI.Extensions;
using XYAC.Framework.WohuaMesExtend.IHI.IHI.Models;
using XYAC.Framework.WohuaMesExtend.IHI.LocalData.Models;
using XYAC.Framework.WohuaMesExtend.IHI.Models;
using XYAC.Framework.WohuaMesExtend.IHI.ViewModels;

namespace XYAC.Framework.WohuaMesExtend.IHI.Views
{

    public partial class QualityDataHistoryView : UserControl
    {
        public QualityDataHistoryView(IOptionsMonitor<AppConfig> options, ILogger<SystemConfigView> logger, QualityDataHistoryViewModel viewmodel)
        {
            InitializeComponent();
            this.CurrentAppConfig = options;
            this.DataContext = viewmodel;
            this.Logger = logger;
        }


        /// <summary>
        /// 机台类型
        /// </summary>
        private string? MachineType { get => CurrentAppConfig.CurrentValue.MachineType; }
        public IOptionsMonitor<AppConfig> CurrentAppConfig { get; }
        public ILogger<SystemConfigView> Logger { get; }
        #region Constraint

        private const String __MachineType_IHI = "IHI";
        private const String __TABLE_DwlData = "DwlData";
        private const String __TABLE_LaserData = "LaserData";
        private const string __REMOTE_SYNC_STATE_PENDING = "PENDING";
        private const string __REMOTE_SYNC_STATE_COMPLETE = "COMPLETE";
        private const string __REMOTE_SYNC_STATE_PLANED = "PLANED";

        #endregion

        private void RecordsDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }
    }
}
